package com.iyouqu.dsp.api.server;

import java.io.IOException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class StartRestful {
	private static Logger log = LoggerFactory.getLogger(StartRestful.class);

	public static void main(String[] args) {
		ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("springContext.xml");
		NettyServer netty = ac.getBean(NettyServer.class);
		netty.start();
		try {
			log.info("----------Sense SMS Restful  Start----------");
			System.in.read();
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			ac.close();
		}

	}
}